﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace RelatorioCEE
{
    public partial class frmPrincipal : Form
    {
        public frmPrincipal()
        {
            InitializeComponent();
        }

        private void sairToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sair();
        }

        private void fecharToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sair();
        }

        private void sair()
        {
            if (MessageBox.Show("O programa será finalizado. Deseja continuar e fechar o programa?", "Centro Educacional da Criança - SED", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
            {
                this.Close();
            }
        }

        private void btnFecharX_Click(object sender, EventArgs e)
        {
            sair();
        }

        private void novoAlunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmNovoAluno frm = new frmNovoAluno();
            frm.ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            frmGerenciarAlunos frm = new frmGerenciarAlunos();
            frm.ShowDialog();
        }
    }
}
